﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<GestionWeb.Models.MovDetalle>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	EditarIngreso
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>EditarIngreso</h2>

    <% using (Html.BeginForm()) {%>
        <%: Html.ValidationSummary(true) %>
        
        <fieldset>
            <legend>Fields</legend>
            
                      
            <div class="editor-label">
               N° Item
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.pos, new { @readonly = "readonly" })%>
                <%: Html.ValidationMessageFor(model => model.pos) %>
            </div>
            
            <div class="editor-label">
           ID Producto
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.producto.Codigo, new { @readonly = "readonly" }) %>
                <%: Html.ValidationMessageFor(model => model.producto.Codigo)%>
            </div>
                        <div class="editor-label">
           Descripción Producto
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.producto.Denominacion, new { @readonly = "readonly" })%>
                <%: Html.ValidationMessageFor(model => model.producto.Denominacion)%>
            </div>
            
                      <div class="editor-label">
           ID Centro
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.centro.idCentro, new { @readonly = "readonly" })%>
                <%: Html.ValidationMessageFor(model => model.centro.idCentro)%>
            </div>

                                 <div class="editor-label">
           Descripción Centro
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.centro.denCentro, new { @readonly = "readonly" })%>
                <%: Html.ValidationMessageFor(model => model.centro.denCentro)%>
            </div>
            
            <div class="editor-label">
Cantidad para Salida
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.cant, String.Format("{0:F}", Model.cant)) %>
                <%: Html.ValidationMessageFor(model => model.cant) %>
            </div>
            
            <div class="editor-label">
               Texto
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.txtPos) %>
                <%: Html.ValidationMessageFor(model => model.txtPos) %>
            </div>
            
            <p>
                <input type="submit" value="Save" />
            </p>
        </fieldset>

    <% } %>

    <div>
        <%: Html.ActionLink("Back to List", "Index") %>
    </div>

</asp:Content>
